import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Student implements Serializable {
    int id;
    String name;
    String sex;
    List list=new ArrayList();

    public Student(int id,String name,String sex) {
        this.id = id;
        this.name=name;
        this.sex=sex;
    }
    void show(){
        for (Object o : list){
            System.out.println("id:"+((Student)o).id+",name:"+((Student)o).name+",sex:"+((Student)o).sex);
        }
    }
    public Student(){}
}
